package com.buymobile.service.impl;

import java.util.List;
import java.util.Map;

import com.buymobile.dao.CustomerDAO;
import com.buymobile.domain.Customer;
import com.buymobile.service.CustomerService;

public class CustomerServiceImpl implements CustomerService{
	
	private CustomerDAO customerDAO;
	
	public void setCustomerDAO(CustomerDAO customerDAO) {
		this.customerDAO = customerDAO;
	}

	@Override
	public int findCount(Map map) {
		return (Integer) customerDAO.queryForObject("customer.findCustomerCount", map);
	}

	@Override
	public List findList(Map map) {
		return customerDAO.queryForList("customer.findCustomerList",map);
	}

}
